package com.cqhfan.chatroom.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author 眭传洪
 * @create 2024-11-14 19:44
 */
@Getter
public enum LoginType {
    USERNAME_PASSWORD(0, "账号密码"),
    CODE(1, "验证码登录")
    ;

    LoginType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    final Integer value;

    final String desc;
}
